package com.lrh.just.po;

import java.io.Serializable;
import java.util.Date;

public class ProdInfo implements Serializable {
    private String prodId;

    private String prodName;

    private String prodState;

    private Date startTime;

    private Date endTime;

    private Double initPrice;

    private Double addRange;

    private String prodDetail;

    private String prodRule;

    private Date createDt;

    private Date updateDt;

    private static final long serialVersionUID = 1L;

    public String getProdId() {
        return prodId;
    }

    public void setProdId(String prodId) {
        this.prodId = prodId == null ? null : prodId.trim();
    }

    public String getProdName() {
        return prodName;
    }

    public void setProdName(String prodName) {
        this.prodName = prodName == null ? null : prodName.trim();
    }

    public String getProdState() {
        return prodState;
    }

    public void setProdState(String prodState) {
        this.prodState = prodState == null ? null : prodState.trim();
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Double getInitPrice() {
        return initPrice;
    }

    public void setInitPrice(Double initPrice) {
        this.initPrice = initPrice;
    }

    public Double getAddRange() {
        return addRange;
    }

    public void setAddRange(Double addRange) {
        this.addRange = addRange;
    }

    public String getProdDetail() {
        return prodDetail;
    }

    public void setProdDetail(String prodDetail) {
        this.prodDetail = prodDetail == null ? null : prodDetail.trim();
    }

    public String getProdRule() {
        return prodRule;
    }

    public void setProdRule(String prodRule) {
        this.prodRule = prodRule == null ? null : prodRule.trim();
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProdInfo other = (ProdInfo) that;
        return (this.getProdId() == null ? other.getProdId() == null : this.getProdId().equals(other.getProdId()))
            && (this.getProdName() == null ? other.getProdName() == null : this.getProdName().equals(other.getProdName()))
            && (this.getProdState() == null ? other.getProdState() == null : this.getProdState().equals(other.getProdState()))
            && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
            && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
            && (this.getInitPrice() == null ? other.getInitPrice() == null : this.getInitPrice().equals(other.getInitPrice()))
            && (this.getAddRange() == null ? other.getAddRange() == null : this.getAddRange().equals(other.getAddRange()))
            && (this.getProdDetail() == null ? other.getProdDetail() == null : this.getProdDetail().equals(other.getProdDetail()))
            && (this.getProdRule() == null ? other.getProdRule() == null : this.getProdRule().equals(other.getProdRule()))
            && (this.getCreateDt() == null ? other.getCreateDt() == null : this.getCreateDt().equals(other.getCreateDt()))
            && (this.getUpdateDt() == null ? other.getUpdateDt() == null : this.getUpdateDt().equals(other.getUpdateDt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProdId() == null) ? 0 : getProdId().hashCode());
        result = prime * result + ((getProdName() == null) ? 0 : getProdName().hashCode());
        result = prime * result + ((getProdState() == null) ? 0 : getProdState().hashCode());
        result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getInitPrice() == null) ? 0 : getInitPrice().hashCode());
        result = prime * result + ((getAddRange() == null) ? 0 : getAddRange().hashCode());
        result = prime * result + ((getProdDetail() == null) ? 0 : getProdDetail().hashCode());
        result = prime * result + ((getProdRule() == null) ? 0 : getProdRule().hashCode());
        result = prime * result + ((getCreateDt() == null) ? 0 : getCreateDt().hashCode());
        result = prime * result + ((getUpdateDt() == null) ? 0 : getUpdateDt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", prodId=").append(prodId);
        sb.append(", prodName=").append(prodName);
        sb.append(", prodState=").append(prodState);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", initPrice=").append(initPrice);
        sb.append(", addRange=").append(addRange);
        sb.append(", prodDetail=").append(prodDetail);
        sb.append(", prodRule=").append(prodRule);
        sb.append(", createDt=").append(createDt);
        sb.append(", updateDt=").append(updateDt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}